package com.jiyun.service.impl;

import com.jiyun.entity.pojo.Particulars;
import com.jiyun.entity.vo.OrdersVO;
import com.jiyun.entity.vo.ParticularsVO;
import com.jiyun.mapper.ParticularsMapper;
import com.jiyun.service.ParticularsService;
import org.springframework.stereotype.Service;
import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import org.springframework.beans.factory.annotation.Autowired;

import java.util.List;

/**
 * (Particulars)表服务实现类
 *
 * @author LYT
 * @since 2025-01-16 18:36:14
 */
@Service("particularsService")
public class ParticularsServiceImpl extends ServiceImpl<ParticularsMapper, Particulars>
        implements ParticularsService {
    @Autowired
    private ParticularsMapper particularsMapper;

    @Override
    public List<ParticularsVO> getByOrderId(Integer orderId) {
        return particularsMapper.getByOrderId(orderId);
    }

    @Override
    public List<ParticularsVO> findAll(ParticularsVO particularsVO) {
        return particularsMapper.findAll(particularsVO);
    }

    @Override
    public Integer AddOrders(OrdersVO ordersVO) {
        return particularsMapper.AddOrders(ordersVO);
    }
}
